<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="gwt:property" content="locale=en">
    <title>Sample GWT project illustrating the usage of the <i>Lego Framework</i>.</title>
    
    <!-- Application css & javascript includes -->
    <link rel="stylesheet" type="text/css" href="css/user.css"></link>
    <script src="js/user.js" type="text/javascript"></script>
    
    <!--CSS for loading message at application Startup-->
    <style type="text/css">
        body { overflow:auto }
        #loading {
            border: 1px solid #ccc;
            position: absolute;
            left: 42%;
            top: 40%;
            padding: 2px;
            z-index: 20001;
            height: auto;
        }

        #loading a {
            color: #225588;
        }

        #loading .loadingIndicator {
            background: white;
            font: bold 13px tahoma, arial, helvetica;
            padding: 10px;
            margin: 0;
            height: auto;
            color: #444;
        }

        #loadingMsg {
            font: normal 10px arial, tahoma, sans-serif;
        }
    </style>          
    <script type="text/javascript">
      //preload loading indicator image
	    if (document.images) {
	       img1 = new Image();
	       img1.src = "images/load.gif";
	    }    
    </script>
  </head>
  
  <body> 
    <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
    
    <!--add loading indicator while the app is being loaded-->
		<div id="loadingWrapper">
		<div id="loading">
		    <div class="loadingIndicator">
		        <img src="images/load.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>Lego Framework Sample App<br/>
		        <span id="loadingMsg"></span></div>
		</div>
		</div>
    
    <!-- Manual internationalization of the initial loading message. -->
    <script type="text/javascript">
      var langCode = null;
      var nameEQ = "legoframework_language=";
      var ca = document.cookie.split(';');
      for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1, c.length);
        if (c.indexOf(nameEQ) == 0) langCode = c.substring(nameEQ.length, c.length);
      }
      if (langCode == 'en') {
    	  document.getElementById('loadingMsg').innerHTML = '<b>Loading, please wait.</b>';
      } else if (langCode == 'de') {
        document.getElementById('loadingMsg').innerHTML = '<b>Geladen, bitte warten.</b>';
      } else {
        document.getElementById('loadingMsg').innerHTML = '<b>Loading, please wait.</b>';          
      }
    </script>    
    
    <script> var isomorphicDir = "com.devmindset.legoframework.usage.UsageApp/sc/"; </script>    
    <script type="text/javascript" language="javascript" src="com.devmindset.legoframework.usage.UsageApp/com.devmindset.legoframework.usage.UsageApp.nocache.js"></script>
  </body>
</html>